<template>
   <div class="juti">
       <div class="jutis" v-show="list===1">
           <h1><span class="iconfont icon-shijian"></span>约需30分钟</h1>
           <ul class="shaos">
               <h1>用料<p>2人份<span class="iconfont icon-jian"></span><span class="iconfont icon-jia1"></span></p></h1>
               <li v-for="(item,index) in data.yongliao" :key="index">
                   <p>{{item.yong}}</p>
                   <p>{{item.qian}}</p>
               </li>
           </ul>
           <ul class="zuofa">
               <h1>做法</h1>
               <li v-for="(item,index) in data.zuofa" :key="index">
                   <p><span>{{index+1}}</span>{{item.zhunbei}}</p>
                   <img :src="item.src" alt="">
               </li>
           </ul>
       </div>
       <div class="yingyang" v-show="list===2">
           <h1>营养价值</h1>
       </div>
       <div class="fuwu" v-show="list===3"></div>
   </div>
</template>

<script>

export default {
   name: '',
   props:["list","data"],
   data() {
       return {

       }
   },
   methods: {
       
   }
}
</script>

<style scoped>
@import url("../../../../../../../assets/fonts2/iconfont.css");
.juti{
    width: 100%;
}
.jutis{
    width: 100%;
}
.yingyang{
    width: 100%;
    height: 100px;
}
.fuwu{
    width: 100%;
    height: 100px;
}
.jutis>h1{
    font-size: 16px;
    line-height: 50px;
}
.jutis h1 span{
    margin-right: 10px;
}
.jutis .shaos>h1{
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    line-height: 40px;
}
.jutis .shaos li{
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(145, 145, 145);;
}
.jutis .shaos li span{
    margin: 0 5px;
}
.jutis .zuofa>h1{
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    line-height: 40px;
}
.jutis .zuofa li p span{
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
    background: #000;
    color: #fff;
}
.jutis .zuofa li p{
    line-height: 30px;
}
.jutis .zuofa li img{
    width: 100%;
    height: 180px;
    margin: 20px 0;
}
</style>